package com.xuesheng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xuesheng.entity.Roles;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2022-05-10
 */
public interface RolesMapper extends BaseMapper<Roles> {

    /**
     * 获取所有角色列表集合
     * @return
     */
    public List<Roles> list(@Param("iPage") IPage iPage, @Param("ch") Roles roles);

    /**
     * 根据角色ID获取已经分配的菜单ID
     * @param roleid
     * @return
     */
    public List<Integer> getMenuByRoleId(Integer roleid);


}
